
<div class="main">
	<div class="panel panel-info">
		<div class="panel-heading" style="height: 40px;">
			<div class="col-sm-2 col-xs-2 col-md-2">日志筛选 {if $logtotal>0}共{$logtotal}条{/if}</div>
			<div class="col-sm-7 col-xs-7 col-md-7"></div>
		</div>
		<div class="panel-body">
			<form id = "myform" action="./index.php" method="get" class="form-horizontal" role="form">
				<input type="hidden" name="c" value="site" />
				<input type="hidden" name="a" value="entry" />
				<input type="hidden" name="m" value="{$_P['m']}" />
				<input type="hidden" name="do" value="record" />
				<input type="hidden" name="op" value="searchlog" />
				{if ($_G['isSuperAdmin'])}
				<div class="form-group">
					<label class="col-xs-12 col-sm-1 col-md-1 control-label">操作类型</label>
					<div class="col-sm-11 col-xs-11 col-md-11">
						<div class="btn-group">
							<a href="{php echo createWebUrl('record', array('op'=>'searchlog'));}" class="btn {if $logtype == $row['type']}btn-primary{else}btn-default{/if}">全部<span style="color: #ff0000">{$alltotal}</span></a>
	                   		{loop $loglist $row}
							<a href="{php echo createWebUrl('record', array('op'=>'searchlog','logtype'=>$row['type']));}" class="btn {if $logtype == $row['type']}btn-primary{else}btn-default{/if}">{$row['type']} <span style="color: #ff0000">{$row['shuliang']}</span></a>
				       		{/loop}
						</div>
					</div>
				</div>
				{/if}
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-1 control-label">关键字</label>
					<div class="col-sm-3 col-lg-3 col-md-3 col-xs-6">
						<input class="form-control" name="logkeyword" placeholder="请输入日志详情内的关键字" type="text" value="{$_P['logkeyword']}">
					</div>
					<div class="col-sm-1 col-lg-1 col-md-1 col-xs-6">
						<button class="btn btn-primary"><i class="fa fa-search"></i> 搜索日志</button>
					</div>
				</div>
			</form>
		</div>
	</div>
</div>

    <table class="table bootstrap-table table-hover site-list">
        <tr>
            <th class="text-left" style="width: 80px;">编号</th>
            <th class="text-left" style="width: 60px;" >活动</th>
            <th class="text-left" style="width: 100px;">操作</th>
            <th class="text-left" >详情</th>
            <th class="text-left" style="width: 100px;">操作员</th>
            <th class="text-right" style="width: 160px;" >IP/时间</th>
        </tr>
        {loop $log $item}
        <tr>
            <td class="text-left">{$item['id']}</td>
            <td class="text-left" >{$item['themeid']}</td>
            {if $item['type']=="开发调试"}
            <td class="text-left" ><a 
							href="{php echo createWebUrl('theme', array('op'=>'dellog'));}"
							>{$item['type']}</a></td>
            {else}
            <td class="text-left" >{$item['type']}</td>
            {/if}
            <td class="text-left" >{$item['desc']}{if !empty($item['tuwen'])}<br><a 
							href="{php echo createWebUrl('theme', array('op'=>'viewtuwen','logid'=>$item['id']));}"
							>查看原图文</a>{/if}</td>
            <td class="text-left" >{$item['user']}</td>
            <td class="text-right" >{$item['ip']}</br>{php echo date('Y-m-d',$item['addtime']);}</br>{php echo date('H:i:s',$item['addtime']);}</td>
        </tr>
        {/loop}
        </tr>
    </table>

    {$logpager}